package com.jrzh.db.migration.sys;

import com.eroi.migrate.Define.DataTypes;
import com.jrzh.framework.migration.BaseMigration;
import com.jrzh.framework.migration.MigrationHelper;
/**
 * sys_users添加关联微信用户openId
 * @author xanthin
 *
 */
public class Migration_16 extends BaseMigration{
	
	private static final String TABLE_NAME = "sys_users";
	
	@Override
	public void down() {
		log.info("##########回滚Sys模块 Migration_15##########");
		MigrationHelper.dropColumn("_open_id", TABLE_NAME);
	}

	@Override
	public void up() {
		log.info("##########执行Sys模块 Migration_16##########Begin");
		addColumn(TABLE_NAME, "_open_id", "关联微信用户openId", DataTypes.VARCHAR, 64);
		log.info("##########执行Sys模块 Migration_16##########End");
	}

}
